<?php
 
class Department extends Eloquent
{
	protected $fillable = array('short_department_name', 'department_name', 'department_description', 'pdf_password');

	/**
	 * The database table used by the model.
	 *
	 * @var string
	 */
	protected $table = 'departments';
	
    /**
     * Set timestamps off
     */
    public $timestamps = false;
 
	public function permissions() {
        return $this->belongsToMany('Permission');
	}
	
	public function templates() {
        return $this->belongsToMany('Template');
	}
}